﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BacteriumBattle
{
    class Program
    {
        static Observer o = null;
        static List<Bacterium> bacteria = null;

        static void Main(string[] args)
        {
            Initialize();
            Iterate();
            Console.Read();
        }

        static void Initialize()
        {
            o = new Observer();
            bacteria = new List<Bacterium>
            {
                new Bacterium(0,0,o),
                new Bacterium(1,1,o),
                new Bacterium(2,2,o),
                new Bacterium(3,0,o),
                new Bacterium(4,3,o)

               
            };
           
        }

        static void Iterate()
        {
            while (true)
            {
                o.DisplayBattlefield();
                Console.ReadLine();
                foreach (var b in bacteria)
                {
                    b.PerformAction();
                }
                
            }
            
        }
    }
}
